package lab02.test19;

import java.util.Scanner;

/**

  * Created by Administrator on 2017/10/29.

  */

        public class Test19 {

    public static void main(String[] args) {


int i;

               Scanner sc=new Scanner(System.in);

                System.out.println("请输入字符串");

                String string=sc.nextLine();

                for (  i=0;i<string.length();i++){

                        if(string.charAt(string.length()-i-1)<'z'&& string.charAt(string.length()-i-1)>'a')

                        { System.out.print((char)((string.charAt(string.length()-i-1))-32));}

            else

                        {System.out.print((char)((string.charAt(string.length()-i-1))+32));}

                    }



                    }

}
